function addComment(){
    var authenticity_token = $('#new_comment input').val();
    var create_url = "/comments/create?authenticity_token=" + authenticity_token;
    var comment_content = $('#comment_content').val();
    var comment_user_id = $('#comment_user_id').val();
    var comment_product_id = $('#comment_product_id').val();

    $.post(create_url,{
        "comment[content]":comment_content,
        "comment[user_id]":comment_user_id,
        "comment[product_id]":comment_product_id
    },function(data){
        if(data == "ok")
        {
            $("#form").append("评论成功。分享经验，获取积分。");
        }
        else
        {
            $("#form").append("系统忙，请稍后尝试。");
        }
    })
}